package fox.framework.rpc.server.dispatcher.router;

import java.lang.reflect.Parameter;
import java.lang.reflect.Type;

/**
 * @author cuichao
 * @Description: DataBinder
 * @Date: create in 2021/1/27 15:02
 */
public class DataBinder {

    private String name;

    private Class targetClass;

    private Type targetType;

    public DataBinder(Parameter parameter) {
        this.name = parameter.getName();
        this.targetClass = parameter.getType();
        this.targetType = parameter.getParameterizedType();
    }


    public String getName() {
        return name;
    }

    public Class getTargetClass() {
        return targetClass;
    }

    public Type getTargetType() {
        return targetType;
    }


}
